from django.conf.urls import url

from .views import index, detail, BookListView, BookDetailView

app_name = 'book'

urlpatterns = [
    #url(r'^$', index),
    # url(r'^(?P<pk>[0-9]+)/$', detail, name='detail'),
    url(r'^(?P<year>[0-9]+)/$', BookListView.as_view()),
    url(r'^detail/(?P<pk>[0-9]+)/$', BookDetailView.as_view(), name='detail'),
]
